<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cat_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[cat_id]', $catdata, $row['cat_id'], ['class'=>'form-control', 'required'=>''])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Articletitle')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-articleTitle" data-rule="required" class="form-control" name="row[articleTitle]" type="text" value="{$row.articleTitle}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Coverimg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-coverimg" class="form-control" name="row[coverimg]" type="text" value="{$row.coverimg}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Showis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-showis" name="row[showis]" type="hidden" value="{$row.showis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-showis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.showis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Acontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-acontent" class="form-control editor" rows="5" name="row[acontent]" cols="50">{$row.acontent}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Articlekey')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-articleKey" class="form-control" name="row[articleKey]" type="text" value="{$row.articleKey}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Solve')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-solve" class="form-control" name="row[solve]" type="number" value="{$row.solve}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Unsolve')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unsolve" class="form-control" name="row[unsolve]" type="number" value="{$row.unsolve}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Visitornum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-visitorNum" class="form-control" name="row[visitorNum]" type="number" value="{$row.visitorNum}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
